//
//  ViewController.swift
//  ZeroShare
//
//  Created by saeipi on 2019/9/23.
//  Copyright © 2019 saeipi. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.red
        let createBtn = UIButton.init(type: .custom)
        createBtn.setTitle("goINKine", for: .normal)
        createBtn.center = self.view.center
        createBtn.bounds = CGRect.init(x: 0, y: 0, width: 200, height: 40)
        createBtn.setTitleColor(UIColor.white, for: .normal)
        createBtn.backgroundColor = UIColor.green
        self.view.addSubview(createBtn)
        createBtn.addTarget(self, action: #selector(onClickTap), for: .touchUpInside)
    }
    
    @objc func onClickTap(){
        let kineVC = QBKlineViewController()
        let nav = UINavigationController.init(rootViewController: kineVC)
        kineVC.title = "klineVC"
        nav.modalPresentationStyle = .fullScreen
        self.present(nav, animated: true, completion: nil)
    }
    
    
    
   
    
   
   

}

